package com.lxb.staservice.client;


import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * service_ucenter 服务提供接口
 *
 * @author xuebin.li
 * @createTime 2023/1/30 09:41
 */
@FeignClient(value = "service-ucenter", fallback = UnceterClientImpl.class) //指定从哪个服务中调用功能 ，名称与被调用的服务名保持一致。
public interface UnceterClient {

    @ApiOperation("统计某天注册人数")
    @GetMapping("/educenter/CountRegister/{day}")
    public Integer CountRegister(@PathVariable String day);
}
